<?php
ini_set("display_errors", "0");
error_reporting(E_ALL);

include $_SERVER["DOCUMENT_ROOT"]."/php/dbConnect.php";

//ADD NEWSLETTER EMAIL
$newsletterEmailResponse = "";
if(isset($_POST["newsletterSubmit"])){
	if(trim($_POST["newsletterEmail"]) != ""){
		$newsletterEmail = $_POST["newsletterEmail"]; 
		
		if(preg_match("/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/", $newsletterEmail)){
			$newsletterEmail = mysql_real_escape_string($_POST["newsletterEmail"]); 
			mysql_query("CALL AddNewsletterEmail('{$newsletterEmail}')") or error_log(mysql_error(), 0);
			$newsletterEmailResponse = "Thank you for subscribing";
		} else {
			$newsletterEmailResponse = "Invalid email address";
		}
	} else {
		$newsletterEmailResponse = "Please fill in";
	}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="icon" type="image/png" href="/favicon.png" />
<title>MoneyBug | Your Guide To Making Money Online</title>
<meta name="keywords" content="make, money, online, make money online, bug, moneybug, moneybug.net, how, to, how to, guide, tutorial, help, website, your, at home, work, home, free, earn" />
<meta name="description" content="Want to make money online? At MoneyBug we have taken our time to put together an online money making guide to help change your life." />
<script src="http://code.jquery.com/jquery.min.js" type="text/javascript"></script>
<link href="/css/default.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
$(document).ready(function(){
	var _0x843c=["\x68\x72\x65\x66","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x2F","\x63\x6C\x69\x63\x6B","\x23\x73\x69\x74\x65\x5F\x6C\x6F\x67\x6F"]
	$(_0x843c[4])[_0x843c[3]](function ()
	{
	window[_0x843c[1]][_0x843c[0]]=_0x843c[2];
	}
	);
});

var _0xd894=["\x64\x65\x66\x61\x75\x6C\x74\x56\x61\x6C\x75\x65","\x76\x61\x6C\x75\x65",""]
function clearText(_0xd544x2)
{
if(_0xd544x2[_0xd894[0]]==_0xd544x2[_0xd894[1]])
{
_0xd544x2[_0xd894[1]]=_0xd894[2];
}
else 
{
if(_0xd544x2[_0xd894[1]]==_0xd894[2])
{
_0xd544x2[_0xd894[1]]=_0xd544x2[_0xd894[0]];
}
}
}
;

</script>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-29202854-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
<body>
<div id="templatemo_header_wrapper">

	<div id="templatemo_header">
    
    	<div id="site_logo"></div>
		<div id="peopleHelped">Over 10,000 people helped</div>
    
    </div> <!-- end of header -->

</div> <!-- end of header wrapper -->

<div id="templatemo_menu_wrapper">

<?php
	$pageName = str_replace(".php", "", str_replace("/", "",($_SERVER["PHP_SELF"])));
	
		$menu_home = "";
		$menu_purchase = "";
		$menu_about = "";
		$menu_contact = "";
	

		switch($pageName){
			case "index":
			$menu_home = "current";
				break;
			
			case "purchase":
			$menu_purchase = "current";
				break;
				
			case "about":
			$menu_about = "current";
				break;
				
			case "contact":
			$menu_contact = "current";
				break;
		}
?>
    
    <div id="templatemo_menu">
        <ul>
            <li><a href="/" class="<?php echo $menu_home; ?>">Home</a></li>
            <li><a href="/purchase" class="<?php echo $menu_purchase; ?>">Purchase</a></li>
            <li><a href="/about" class="<?php echo $menu_about; ?>">About</a></li>
            <li><a href="/contact" class="last <?php echo $menu_contact; ?>">Contact Us</a></li>
        </ul>    	
    </div> <!-- end of menu -->
</div> <!-- end of menu wrapper -->

<div id="tempatemo_content_wrapper">

    <div id="templatemo_content">
        
        <div id="content_panel">
        	
            <div id="column_w610">